﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using dnpCryptCompress;

namespace CryptoCompressNew
{
    public class Crypt 
    {
        public static void File(string fileName, string password)
        {
            var cc = new CryptCompress();
            string result = cc.FileCrypt(fileName, password);

            if (!result.Contains("verschlüsselt."))
            {
                throw new ApplicationException(result);
            }
        }
    }
}
